package net.mysgame.czfun.module.video.store;

import net.mysgame.czfun.module.video.data.CzVideo;
import net.mysgame.czfun.utils.BeanWrapperUtils;
import org.apache.ibatis.jdbc.SqlBuilder;

import java.lang.reflect.InvocationTargetException;


/**
 * Created by manatea on 2016/5/31.
 */
public class VideoSql {
    public String insert(CzVideo video){
            return BeanWrapperUtils.nameParameterConvert("REPLACE INTO cz_video(id,name,desn,ptime,pic,view_count,parent_cid,user_id,comment_count,html)" +
                            " VALUES(#{id},#{name},#{desn},#{ptime},#{pic},#{viewCount},#{parentCid},#{userId},#{commentCount},#{html})", video);
    }
}
